package cn.example.vip.mall.goods.feign;

import cn.example.vip.mall.goods.entity.Product;
import cn.example.vip.mall.util.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-goods", path = "/spu", contextId = "mall-goods-spu")
public interface SpuFeign {
	/**
	 * 根据spuId查询Product
	 */
	@GetMapping("/product/{id}")
	RespResult<Product> findProductById(@PathVariable("id") String id);
}
